Skip to content

ChamberSphere Periodicity Fix#234

Merged
mrp089 merged 4 commits into
SimVascular:masterfrom
jthomas475:periodicity
Jun 11, 2026
Merged

ChamberSphere Periodicity Fix#234
mrp089 merged 4 commits into
SimVascular:masterfrom
jthomas475:periodicity

Conversation

@jthomas475

@jthomas475 jthomas475 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Updated phase_tsys and phase_tdias calculations for elastance values in ChamberSphere

Current situation

Improved periodic handling of elastance values during cardiac cycles by updating phase_tsys and phase_tdias calculations in ChamberSphere.cpp to adhere to periodic updates. Without the periodic fix, finite difference spikes, creating discontinuities and/or other abnormal features (see plots attached).
activation_3cycles
activation_dfdt
activation_zoom

Release Notes

  • Updated phase_tsys and phase_tdias calculations in ChamberSphere.cpp by developing warp_signed function.
  • Plotted comparisons between ChamberSphere outputs with and without periodic fix are attached to this pull request.
ChamberSphere_noPeriodic_1cycle_Jun10 ChamberSphere_Periodic_1cycle_Jun10

Documentation

Please ensure that you properly document any additions.

Testing

  • Evaluated the updates by running svzerodsolver executable and having results validated by Katrin Koesler

Code of Conduct & Contributing Guidelines

Updated phase_tsys and phase_tdias calculations for elastance values in
ChamberSphere
Corrected calculation of S_minus variable in ChamberSphere.cpp (removed
"- tdias" shift that was a remnant of original calculation of S_minus)
   After correcting, plotted ChamberSphere outputs with
and without periodic fix.
Prettier binary in node_modules was not executable on Windows filesystem
(/mnt/c), so npm run format/check would fail with a shell syntax error.
Thus, installed prettier globally and replaced local binary with script
that points to global install. Similar fix for clang-format
@KatrinKoesler KatrinKoesler requested a review from mrp089 June 11, 2026 17:50

@mrp089 mrp089 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you both, looks good!

@mrp089 mrp089 merged commit ce68a7c into SimVascular:master Jun 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants